home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / demos / mastdemo.zoo / batch / array.bat next >
DOS Batch File  |  1990-03-22  |  365b  |  13 lines

  1. rem Array-Test
  2. a = 'test 3 c "WOW! everything is ok"'
  3. set b a
  4. set c ,
  5. set test 1
  6. rem The following vars are set:
  7. set
  8. rem And now --- THE TEST !
  9. rem rem \$a[\${\$b[:]}[\${\$a[0]}[\$c]]]
  10. # if you can reproduce this without looking at the source, than you have
  11. # understood the most complex features of variable substitution
  12. rem $a[${$b[:]}[${$a[0]}[$c]]]
  13.